package com.itcast.service;

import com.itcast.domain.PageBean;
import com.itcast.domain.Student;

import java.util.List;

/**
 * @param
 * @return
 */
public interface StudentService {
    List<Student> findAll();

    int add(Student student);

    Student findById(int i);

    int delete(int id);

    int update(Student student);

    PageBean<Student> findByPage(int currentPage, int rows);

    boolean login(String username, int password);
}
